<template>
     <el-table
    ref="multipleTable"
    :data="tableData"
    tooltip-effect="dark"
    style="width: 100%"
    border
    @selection-change="handleSelectionChange">
    <el-table-column
      type="selection"
      width="55">
    </el-table-column>
    <el-table-column
      label="编号"
      width="120">
      <template slot-scope="scope">{{ scope.row.date }}</template>
    </el-table-column>
    <el-table-column
      prop="name"
      label="创建日期"
      width="120">
    </el-table-column>
    <el-table-column
      prop="address"
      label="供货厂商"
      show-overflow-tooltip>
    </el-table-column>
    <el-table-column
      prop="address"
      label="进货仓库"
      show-overflow-tooltip>
    </el-table-column>
    <el-table-column
      prop="address"
      label="总金额"
      show-overflow-tooltip>
    </el-table-column>
        <el-table-column
      prop="address"
      label="入库时间"
      show-overflow-tooltip>
    </el-table-column>
    <el-table-column
      prop="address"
      label="发起人"
      show-overflow-tooltip>
    </el-table-column>
    <el-table-column
      prop="address"
      label="审批人"
      show-overflow-tooltip>
    </el-table-column>
    <el-table-column
      prop="address"
      label="状态"
      show-overflow-tooltip>
    </el-table-column>
    <el-table-column label="审批操作">
      <template >
        <el-button
          size="mini"
          @click="handlecheck">审批</el-button>
      </template>
    </el-table-column>
    <el-table-column label="操作">
      <template >
        <el-button
          size="mini"
          @click="handleEdit">编辑</el-button>
          <el-button
          size="mini"
          @click="handleView">预览</el-button>
          <el-button
          size="mini"
          @click="handleEdit">删除</el-button>
      </template>
    </el-table-column>
    
  </el-table>
</template>

<script>
export default {
  name:'InList',
  data() {
    return {
      tableData:[
              {
                  id:'123',
                  name:'wangshuang',
                  address:'123',
          }
          ],
    }
  },
  methods: {
    handleView() {
      this.$router.push('/inmangement/inventoryviewin')
    },
    handlecheck() {
        this.$prompt('审批意见', '审批', {
          confirmButtonText: '确定',
          cancelButtonText: '取消',
        }).then(({ value }) => {
          this.$message({
            type: 'success',
            message: '你的审批意见是: ' + value
          });
        }).catch(() => {
          this.$message({
            type: 'info',
            message: '取消输入'
          });       
        });
    }
  }
}

</script>


<style lang="scss" scoped>

</style>